package com.superMall.service;

import com.github.pagehelper.PageInfo;
import com.sun.corba.se.spi.activation.Server;
import com.superMall.common.ServerResponse;
import com.superMall.vo.OrderItemVO;
import com.superMall.vo.OrderProductVO;
import com.superMall.vo.OrderVO;

import java.util.List;
import java.util.Map;

/**
 * Created by guanwei on 2017/11/22.
 */
public interface IOrderService {

    ServerResponse<Map<String,String>> pay(Integer userId, Long orderNo, String path);
    ServerResponse aliCallback(Map<String,String> params);
    ServerResponse queryOrderPayStatus(Integer userId,Long orderNo);
    ServerResponse<OrderVO> create(Integer userId, Integer shippingId);
    ServerResponse cancel(Integer userId,Long orderNo);
    ServerResponse<OrderProductVO> getOrderCartProduct(Integer userId);
    ServerResponse<OrderVO> getOrderDetail(Integer userId,Long orderNo);
    ServerResponse<PageInfo> getOrderList(Integer userId, Integer pageNum, Integer pageSize);
    ServerResponse<PageInfo> manageOrderList(Integer pageNum, Integer pageSize);
    ServerResponse<PageInfo> manageSearch(Long orderNo,Integer pageNum, Integer pageSize);
    ServerResponse<OrderVO> manageDetail(Long orderNo);
    ServerResponse manageSendGoods(Long orderNo);
}
